package com.ibeetl.admin.aod.web.dto.rowmapper;

import com.ibeetl.admin.aod.web.dto.AodIndustryDataNonDto;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;


public class AodIndustryDataNonRowMapper implements RowMapper<AodIndustryDataNonDto> {

    @Override
    public AodIndustryDataNonDto mapRow(ResultSet resultSet, int i) throws SQLException {

        AodIndustryDataNonDto aodIndustryDataNonDto = new AodIndustryDataNonDto();
        aodIndustryDataNonDto.setLabel(resultSet.getString("label"));
        aodIndustryDataNonDto.setLabelNum(resultSet.getLong("labelNum"));
        return aodIndustryDataNonDto;
    }
}
